#components {
    margin: 20px 0 50px;/*原来是100*/
}

#components .component_row {
    display: block;
    clear: both;
    min-height: 35px;
}

#components .table {
    width: 100%;
    margin-bottom: 10px;
}

#components .table tr {
    position: relative;
}

#components .table td {
    padding: 10px 5px;
    border-top: 0.01em solid #DDD;
}

#components .table tr:last-child td {
    border-bottom: 0.01em solid #DDD;
}

#components .table .tag {
    width: 140px;
}

@media screen and (min-width: 600px) {
    #components .table .tag {
        width: calc(140px + 50 * (100vw - 600px) / 1320);
    }

    /*#components .table tr:nth-child(odd){*/
        /*background-color: #f3f3f3;*/
    /*}*/
}

@media screen and (min-width: 1920px) {
    #components .table .tag {
        width: 190px;
    }
}

#components .table .tag h4 {
    margin: 0;
    white-space: nowrap;
    font-weight: 400;
    display: inline;
    margin-right: 5px;
    line-height: 28px;
    letter-spacing: -0.03em;
    font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif;
}

#components .table .tag h4 {
    font-size: 18px;
}

@media screen and (min-width: 400px) {
    #components .table .tag h4 {
        font-size: calc(18px + 0 * (100vw - 400px) / 1520);
    }
}

@media screen and (min-width: 1920px) {
    #components .table .tag h4 {
        font-size: 18px;
    }
}

#components .table .tag .show_add_component_link {
    margin-top: 7px;
    font-size: 12px;
    color: #656565;
    display: block;
    height: 21px;
}

#components .table .tag .show_add_component_link span {
    vertical-align: top;
    line-height: 11px;
}

#components .table .tag .show_add_component_link [class*=icon-]:before {
    font-size: 20px;
    line-height: 5px;
    color: #999;
}

#components .table .tag .show_add_component_link+h4 {
    display: none !important;
}

#components .table .name {
    vertical-align: middle;
    position: relative;
}

#components .table .name a {
    font-weight: 400;
    line-height: 22px;
}

#components .table .name a {
    font-size: 14px;
}
#components .table .name, .price {
    line-height: 22px;
}

#components .table .price a{
    display: block;
    width: 50px;
    color: #656565;
}
#components .table .price a:hover{
    color: #f60;
}

@media screen and (min-width: 400px) {
    #components .table .name a,.price span,.price a {
        font-size: calc(14px + 3 * (100vw - 400px) / 1520);
    }
}

@media screen and (min-width: 1920px) {
    #components .table .name a {
        font-size: 17px;
    }
}

#components .table .name .component_delete {
    margin: 0 4px 0 0;
}

#components .table .name input {
    margin-bottom: 0;
    max-width: 100%;
    border-radius: 2px 0 0 2px;
}

#components .table .name #add_component {
    font-weight: 300;
    font-size: 14px;
}

#components .table .name .matches a {
    color: #777;
    white-space: nowrap;
}

#components .table .name .matches a {
    font-size: 10px;
}

@media screen and (min-width: 400px) {
    #components .table .name .matches a {
        font-size: calc(10px + 4 * (100vw - 400px) / 1520);
    }
}

@media screen and (min-width: 1920px) {
    #components .table .name .matches a {
        font-size: 14px;
    }
}

#components .table .name .matches a:hover {
    color: #AAA;
}

#components .table .name .vendor {
    font-weight: 400;
    display: none;
}

#components .table .name .vendor {
    font-size: 11px;
}

@media screen and (min-width: 400px) {
    #components .table .name .vendor {
        font-size: calc(11px + 5 * (100vw - 400px) / 1520);
    }
}

@media screen and (min-width: 1920px) {
    #components .table .name .vendor {
        font-size: 16px;
    }
}

#components .table .price {
    vertical-align: top;
    text-align: right;
    width: 80px;
    padding: 10px 20px 10px 20px;
    color: #656565;
    font-weight: 400;
}

#components .table .price {
    font-size: 15px;
}

@media screen and (min-width: 400px) {
    #components .table .price {
        font-size: calc(15px + 4 * (100vw - 400px) / 1520);
    }
}

@media screen and (min-width: 1920px) {
    #components .table .price {
        font-size: 19px;
    }
}

#components .table .price input {
    margin-top: 5px;
}

@media (min-width: 601px) {
    #components .table .price input {
        display: none;
    }
}

#components .table .quantity {
    vertical-align: top;
    width: 50px;
}

@media (max-width: 600px) {
    #components .table .quantity {
        display: none;
    }
}

#components .table .component_quantity {
    padding: 0 0 0 7px;
    margin-bottom: 0;
    line-height: 24px;
    height: 24px;
    width: 50px;
    display: inline-block;
}

#components .table .component_quantity {
    font-size: 12px;
}

@media screen and (min-width: 400px) {
    #components .table .component_quantity {
        font-size: calc(12px + 6 * (100vw - 400px) / 1520);
    }
}

@media screen and (min-width: 1920px) {
    #components .table .component_quantity {
        font-size: 18px;
    }
}

#components .table .typeahead__container {
    font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif;
    font-size: 16px;
    border-width: 0.5px;
}

#components .table .typeahead__container .typeahead__list {
    padding: 0;
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

#components .table .typeahead__container .typeahead__list .typeahead__item {
    border-top: 0.5px solid #CCC;
    border-bottom: none;
    padding: 0;
}

#components .table .typeahead__container .typeahead__list .typeahead__item:first-child {
    border-top: none;
}

#components .table .typeahead__container .typeahead__list .typeahead__item:first-child a {
    padding-top: 20px;
}

#components .table .typeahead__container .typeahead__list .typeahead__item:last-child a {
    padding-bottom: 20px;
}

#components .table .typeahead__container .typeahead__list .typeahead__item a {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-direction: normal;
    -webkit-box-orient: horizontal;
    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -moz-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    -webkit-justify-content: flex-start;
    -moz-justify-content: flex-start;
    justify-content: flex-start;
    padding: 10px 15px;
}

#components .table .typeahead__container .typeahead__list .typeahead__item a .image {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 50px;
    -moz-box-flex: 0;
    -moz-flex: 0 0 50px;
    -ms-flex: 0 0 50px;
    flex: 0 0 50px;
}

#components .table .typeahead__container .typeahead__list .typeahead__item a .image img {
    width: 50px;
    height: 50px;
}

#components .table .typeahead__container .typeahead__list .typeahead__item a .name {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -moz-box-flex: 1;
    -moz-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #709FCD;
    font-size: 15px;
    padding: 0 0 0 8px;
}

#components .table .typeahead__container .typeahead__list .typeahead__item a .name .vendor, #components .table .typeahead__container .typeahead__list .typeahead__item a .name .matches {
    font-size: 13px;
    display: block;
    color: #222;
    font-weight: 400;
}

#components .table .typeahead__container .typeahead__list .typeahead__item a .matches {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 50px;
    -moz-box-flex: 0;
    -moz-flex: 0 0 50px;
    -ms-flex: 0 0 50px;
    flex: 0 0 50px;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #656565;
    text-align: center;
    padding: 2px 0 0 8px;
}

#components .table .typeahead__container .typeahead__list .typeahead__item a .matches [class*=icon-]:before {
    font-size: 15px
}

#components .table .typeahead__container .typeahead__list .typeahead__item a .price {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 65px;
    -moz-box-flex: 0;
    -moz-flex: 0 0 65px;
    -ms-flex: 0 0 65px;
    flex: 0 0 65px;
    padding: 0;
    margin: 0 10px 0 15px;
    font-weight: 400;
    color: #656565;
}

#components .table .typeahead__container .typeahead__list .typeahead__item a .price {
    font-size: 14px;
}

@media screen and (min-width: 400px) {
    #components .table .typeahead__container .typeahead__list .typeahead__item a .price {
        font-size: calc(14px + 2 * (100vw - 400px) / 1520);
    }
}

@media screen and (min-width: 1920px) {
    #components .table .typeahead__container .typeahead__list .typeahead__item a .price {
        font-size: 16px;
    }
}

#components .table .typeahead__container .typeahead__button {
    vertical-align: top;
}

#components .table .typeahead__container .typeahead__empty a {
    font-size: 15px;
    color: #777;
}

#components .table .typeahead__container button {
    height: 34px;
}

#components .table #add_component_mobile_template .modal {
    overflow-y: auto;
}

#components .table #add_component_mobile_template .modal.fade.in .modal-dialog {
    top: 0;
    -webkit-transform: none;
    transform: none;
}

#components .table #add_component_mobile_template .modal .close {
    display: block;
}

#components .table #add_component_mobile_template .modal .modal-header, #components .table #add_component_mobile_template .modal .modal-body {
    padding: 15px;
}

#components .table #add_component_mobile_template .modal .modal-header h1 {
    margin-top: 10px;
}

#components .table #add_component_mobile_template .modal .modal-header {
    padding-bottom: 0;
}

#components .table #add_component_mobile_template .modal .modal-dialog .typeahead__dropdown, #components .table #add_component_mobile_template .modal .modal-dialog
.typeahead__list {
    margin-top: 15px;
    position: relative;
    box-shadow: none;
}

#components .table #add_component_mobile_template .modal .modal-dialog .typeahead__container .typeahead__list .typeahead__item
a {
    padding: 8px 0;
}

#components .table #add_component_mobile_template .modal .modal-dialog .typeahead__container .typeahead__list .typeahead__item a
.image {
    padding-left: 7px;
}

#components .table #add_component_mobile_template .modal .modal-dialog .typeahead__container .typeahead__list .typeahead__item a .name
.title {
    font-size: 14px;
}

#components .table #add_component_mobile_template .modal .modal-dialog .typeahead__container .typeahead__list .typeahead__item a .name
.vendor {
    font-size: 12px;
}

#components .table #add_component_mobile_template .modal .modal-dialog .typeahead__container .typeahead__list .typeahead__item a
.matches {
    display: none;
}

#components .table #add_component_mobile_template .modal .modal-dialog .modal-footer {
    margin-top: 0;
}

#components .total_vendors {
    padding-left: 0
}

#components .total_vendors {
    font-size: 12px
}

@media screen and (min-width: 400px) {
    #components .total_vendors {
        font-size: calc(12px + 2 * (100vw - 400px) / 1520)
    }
}

@media screen and (min-width: 1920px) {
    #components .total_vendors {
        font-size: 14px
    }
}

@media only screen and (max-width: 600px) {
    #components table, #components tbody, #components tr {
        display: block;
    }

    #components .table tr {
        margin-top: 10px;
    }

    #components .table tr:hover {
        background-color: #FFF;
    }

    #components .table tr:last-child td {
        border-bottom: 0;
    }

    #components .table .tag {
        border: none;
        position: relative;
        padding: 0;
        display: none;
    }

    #components .table .first-tag .tag {
        border-bottom: #e4e4e4 1px solid;
        width: 100%;
        max-width: 100%;
        display: inline-block;
        padding: 15px 0 5px 0;
        margin-bottom: 15px;
    }

    #components .table .first-tag .tag .show_add_component_link {
        float: right;
    }

    #components .table .first-tag .tag .show_add_component_link+h4 {
        display: block !important;
    }

    #components .table .first-tag:nth-child(1) {
        margin-top: 0;
    }

    #components .table .first-tag:nth-child(1) .tag {
        padding-top: 0;
    }

    #components .table .first-tag:nth-child(1) .tag #add_component {
        top: -7px;
    }

    #components .table .name, #components .table .price {
        display: table-cell;
        border: none;
        padding: 0;
        vertical-align: top;
    }

    #components .table .name {
        width: 100%;
    }

    #components .table .price {
        padding-left: 30px;
    }
}

.prices .total_price, .prices .base_price {
    font-size: 20px;
    font-weight: 300;
    width: 110px;
    text-align: right;
    margin-top: -2px;
    clear: right;
}
